<?php

/**
 * Created by Nguyễn Duy Cường.
 * User: Nguyễn Duy Cường
 * Date: 14/3/13
 * Time: 1:54 PM
 * To change this template use File | Settings | File Templates.
 */
class Tinnhan extends AppModel {
    public $name = 'Tinnhan';
    
    
    public $belongsTo = array(
        'User' => array(
            'conditions' => array(
                'User.status' => 1,
            ),
            'fields' => array('id', 'email', 'fullname', 'images'),
            'className' => 'User',
            'foreignKey' => 'user_id_send'
        )
    );
}
